package AOP;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

//可硬通过@Order指定切面优先级
@Order(2) 
@Aspect
@Component
public class CaculatorAspect2 {
	@Before("execution(void AOP.MyCaculatorInterFace.add(double , double))")
	public void beforeMethod () {
		System.out.println("指定优先级 函数执行之前");
	}
}
